package com.zee.example.angle.bean;

import android.text.TextUtils;

import java.io.Serializable;

public class AppListBean implements  Serializable {
    /**
     * appId : 342915
     * packageName : pro.huobi
     * appName : 火币
     * appSubName : 火币旗下创新的数字资产交易平台
     * appType : 0
     * iconUrl : http://store.acuteangle.cn/localresource/pic/2018/07/20180709105648829_1_72x72_xyJi.png
     * appOpenUrl : http://store.acuteangle.cn/localresource/apk/2018/08/20180709110616097_1_72x72_QbW4.apk
     */

    private int appId;
    private String packageName;
    private String appName;
    //副标题
    private String appSubName;
    //app类型 0:APK,1：DApp,2：Dapp的apk类型
    private int appType;
    private String iconUrl;
    //app下载地址
    private String appOpenUrl;

    //新闻资讯的图片
    private String infoImgUrl;
    private String recommendImgUrl;

    //资讯
    private String infoId;//资讯ID
    private String infoTitle;
    private String infoTitleSub;
    private String htmlUrl;

    //任务
    private String taskId;//任务ID
    private String taskAwardAmount;//任务奖励的数量
    private String taskAwardCoin;//任务奖励的币种

    private int coinType;

    public int getAppId() {
        return appId;
    }

    public void setPackageName(String paPackageName) {
        packageName = paPackageName;
    }

    public String getPackageName() {
        return packageName;
    }

    public String getRecommendImgUrl() {
        return recommendImgUrl;
    }

    public String getInfoId() {
        return infoId;
    }

    public String getAppName() {
        return appName;
    }

    public String getAppSubName() {
        return appSubName;
    }

    public int getAppType() {
        return appType;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public String getAppOpenUrl() {
        return appOpenUrl;
    }

    public String getInfoTitle() {
        return infoTitle;
    }

    public String getInfoTitleSub() {
        return infoTitleSub;
    }

    public String getHtmlUrl() {
        return htmlUrl;
    }

    public String getInfoImgUrl() {
        return infoImgUrl;
    }

    /**
     * 当前是不是任务中的
     * @return
     */
    public boolean isTask() {
        return !TextUtils.isEmpty(taskId);
    }

    public int getCoinType() {
        return coinType;
    }

    @Override
    public String toString() {
        return "AppListBean{" +
                "appName='" + appName + '\'' +
                ", appSubName='" + appSubName + '\'' +
                ", infoTitle='" + infoTitle + '\'' +
                ", infoTitleSub='" + infoTitleSub + '\'' +
                ", htmlUrl='" + htmlUrl + '\'' +
                ", taskId='" + taskId + '\'' +
                ", taskAwardAmount='" + taskAwardAmount + '\'' +
                ", taskAwardCoin='" + taskAwardCoin + '\'' +
                '}';
    }
}